package com.gxa.mapper.xiaohuomapper;

import com.gxa.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @version 1.0
 * @Author fluoxetine
 * @Date 2022/4/2 9:59
 **/

@Mapper
public interface KeHuDingDanMapper {
//  查询客户
    List<KeHu> selectAllKeHu(@Param("keHuType") String keHuType,
                             @Param("keHuBianHao") String keHuBianHao);
//  查询商品
    List<ShangPin> selectAllShangPin(@Param("shangPinBianHao")String shangPinBianHao,
                                     @Param("shangPinMingCheng")String shangPinMingCheng,
                                     @Param("guiGeXingHao") String guiGeXingHao,
                                     @Param("page") String  page ,
                                     @Param("size") String size);
//  查询仓库
    List<CangKu> selectCangKu(@Param("cangKeName") String cangKeName);

//  查询所有客户订单记录
    List<KeHuDingDan> selectKeHuDingDanJiLu(@Param("keHuName") String keHuName,
                                            @Param("startTime") String startTime,
                                            @Param("endTime") String endTime);
//   删除客户订单
     int delKeHuDingDanJiLuById(int id);

    /**
     * 修改客户订单
     * @param keHuDingDan
     * @return
     */
     int updateKeHuDingDanJiLuById(KeHuDingDan keHuDingDan);

    int addShenHe(@Param("shenHeZhuangTai")int shenHeZhuangTai);

    int fanShenHe(@Param("shenHeZhuangTai")int shenHeZhuangTai);

    //   添加客户订单
    int addKeHuDingDan(KeHuDingDan KeHuDingDan);


    int shenHe(@Param("shenHeZhuangTai")int shenHeZhuangTai);
}
